<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/*
			 * href 连接地址
			 * src = 图片地址
			 * href与src取到的是绝对地址
			 * 切记不要拿href与src取到的值做判断
			 */
			window.onload = function(){
				var img = document.getElementById("pic");
				var link = document.getElementById("link");
				
				console.log(pic.src);
				console.log(link.href);
			}
		</script>
		<img  id="pic" src="img/02.jpg"/>
		<a id= "link" href="Value属性.html">js</a>
	</body>
</html>
